docker run -d --name sentry-redis redis
docker run -d --name sentry-postgres -e POSTGRES_PASSWORD=secret -e POSTGRES_USER=sentry postgres


docker run --rm sentry config generate-secret-key


# docker run -it --rm -e SENTRY_SECRET_KEY='dkqenxtc$%!aom6b@a150rz=en7w+j=d!n4flcb4t03_9va64c' --link sentry-postgres:postgres --link sentry-redis:redis sentry upgrade
docker run -d --name my-sentry -p 9000:9000 -e SENTRY_SECRET_KEY='dkqenxtc$%!aom6b@a150rz=en7w+j=d!n4flcb4t03_9va64c' --link sentry-redis:redis --link sentry-postgres:postgres sentry
docker run -d --name sentry-cron -e SENTRY_SECRET_KEY='dkqenxtc$%!aom6b@a150rz=en7w+j=d!n4flcb4t03_9va64c' --link sentry-postgres:postgres --link sentry-redis:redis sentry run cron
docker run -d --name sentry-worker-1 -e SENTRY_SECRET_KEY='dkqenxtc$%!aom6b@a150rz=en7w+j=d!n4flcb4t03_9va64c' --link sentry-postgres:postgres --link sentry-redis:redis sentry run worker

# docker run -it --rm -e SENTRY_SECRET_KEY='dkqenxtc$%!aom6b@a150rz=en7w+j=d!n4flcb4t03_9va64c' --link sentry-redis:redis --link sentry-postgres:postgres sentry createuser

docker stop my-sentry
docker stop sentry-cron
docker stop sentry-worker-1

docker start my-sentry
docker start sentry-cron
docker start sentry-worker-1